package com.longxiao.vo;


import com.longxiao.validator.anno.ValiNumber;
import com.longxiao.validator.anno.ValiString;

import java.util.Date;

/**
 * Created by yusong on 2017/5/4.
 * 用户注册请求
 */
public class RegisterVo {
    //用户ID(注册第一步生成)
    private String userId;
    //图像链接
    @ValiString(maxLen = 200, required = false, err = "图片URL过长")
    private String imgUrl;
    //昵称
    @ValiString(maxLen = 200, required = false, err = "昵称不能超过200个字符")
    private String nickname;
    //邮箱
    @ValiString(regex = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$",  err = "请输入正确的邮箱")
    private String email;
    //性别 用户性别（0：女性，1：男性）
    @ValiNumber(ref = {0, 1}, err = "性别信息错误")
    private Integer gender;
    //生日
    private String birthday;
    //时区
    private String timezone;
    //国家
    private String country;
    //省份、州
    private String province;
    //城市
    private String city;
    //职业
    private String occupation;
    //费率
    private Integer rate;

    private String token;

    @Override
    public String toString() {
        return "RegisterVo{" +
                "userId='" + userId + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", nickname='" + nickname + '\'' +
                ", email='" + email + '\'' +
                ", gender=" + gender +
                ", birthday='" + birthday + '\'' +
                ", timezone='" + timezone + '\'' +
                ", country='" + country + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", occupation='" + occupation + '\'' +
                ", rate=" + rate +
                ", token='" + token + '\'' +
                '}';
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getTimezone() {
        return timezone;
    }

    public void setTimezone(String timezone) {
        this.timezone = timezone;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public Integer getRate() {
        return rate;
    }

    public void setRate(Integer rate) {
        this.rate = rate;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
